/*
 * @Descripttion:
 * @Author: jhw
 * @Date: 2023-04-12 14:32:14
 * @LastEditors: jhw
 * @LastEditTime: 2023-05-07 20:11:19
 */

import { ContentTypeEnum } from '@/enums/httpEnum';
import { interceptorHooks } from './interceptorHooks';
import { HRequest } from './service';

export const http = new HRequest({
  baseURL: import.meta.env.VITE_APP_BASE_API,
  timeout: import.meta.env.VITE_TIME_OUT,
  showLoading: false,
  withToken: false,
  interceptorHooks,
  headers: {
    'Content-Type': ContentTypeEnum.JSON,
  },
});
